#include "cp0_regdef.h"	
	.globl kset_status
	.globl kset_cause
	
#--------------------------------------------------------------------------
# kset_status
# sets the status register
#--------------------------------------------------------------------------

kset_status:
	mfc0 $t0,sr
	and $t0, $t0, $a0
	or $t0, $t0, $a1
	mtc0 $t0,sr
	jr $ra

#--------------------------------------------------------------------------
# kset_cause
# sets the cause register
#--------------------------------------------------------------------------

kset_cause:
	mfc0 $t0,cause
	and $t0, $t0, $a0
	or $t0, $t0, $a1
	mtc0 $t0,cause
	jr $ra

